package com.ruoyi.trade.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 期权行情对象 option_quotes
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class OptionQuotes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识ID */
    private Long id;

    /** 年份，yyyy格式 */
    @Excel(name = "年份，yyyy格式")
    private String year;

    /** 期权名称 */
    @Excel(name = "期权名称")
    private String name;

    /** 合约价格 */
    @Excel(name = "合约价格")
    private Long contractPrice;

    /** 合约行权价 */
    @Excel(name = "合约行权价")
    private Long strikePrice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setContractPrice(Long contractPrice) 
    {
        this.contractPrice = contractPrice;
    }

    public Long getContractPrice() 
    {
        return contractPrice;
    }

    public void setStrikePrice(Long strikePrice) 
    {
        this.strikePrice = strikePrice;
    }

    public Long getStrikePrice() 
    {
        return strikePrice;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("year", getYear())
            .append("name", getName())
            .append("contractPrice", getContractPrice())
            .append("strikePrice", getStrikePrice())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
